package com.syni.mdd.yhd.common.all.quartz.order.job;

import com.syni.mdd.yhd.common.all.service.BmsBusinessGroupMessageService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @className GroupMessageJobListener
 * @description TOO
 * @Author cfx
 * @DATE 2019/6/27 14:14
 * @VERSION 1.0
 **/
@Component
public class OrderCancelJobListener implements JobListener {
    private final Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    BmsBusinessGroupMessageService bmsBusinessGroupMessageService;

    @Override
    public String getName() {
        return getClass().getName();
    }

    @Override
    public void jobToBeExecuted(JobExecutionContext jobExecutionContext) {

    }

    @Override
    public void jobExecutionVetoed(JobExecutionContext jobExecutionContext) {
        System.out.println("b？");
    }

    @Override
    public void jobWasExecuted(JobExecutionContext jobExecutionContext, JobExecutionException e) {
        log.info("...........定时订单取消完成...............");
    }
}
